package com.dly.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;

import lombok.Builder;
import lombok.Data;

/**
 * 
 * @TableName blog_token
 */
@TableName(value ="blog_token")
@Data
@Builder
public class Token implements Serializable {
    /**
     *
     */
    @TableId
    private String id;

    /**
     * token
     */
    private String token;

    /**
     * token类型
     */
    private String tokenType;

    /**
     * 撤销
     */
    private Integer isRevoked;

    /**
     * 过期
     */
    private Integer isExpired;

    /**
     * 用户id
     */
    private String userId;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}